# coding: utf-8

class TestClass
	attr_reader :name 
	attr_writer :name 
	attr_accessor :age

	def initialize(name, age)
		@name, @age = name, age
	end
end

test = TestClass.new "段光伟", 20
test.name = "段光宇"
test.age = 29
puts test.name, test.age